package com.lykj.modules.shop.entity;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import java.util.Date;

import com.lykj.core.tenant.mp.TenantEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * 现金订单表实体类
 *
 * @author cxl
 * @since 2022-01-16
 */
@Data
@TableName("shsy_user_order")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "UserOrder对象", description = "现金订单表")
public class UserOrder extends TenantEntity {

	private static final long serialVersionUID = 1L;

	/**
	 * 用户ID
	 */
	@ApiModelProperty(value = "用户ID")
	private Long userId;
	/**
	 * 用户姓名
	 */
	@ApiModelProperty(value = "用户姓名")
	private String contacts;
	/**
	 * 用户电话
	 */
	@ApiModelProperty(value = "用户电话")
	private String mobile;
	/**
	 * 详细地址
	 */
	@ApiModelProperty(value = "详细地址")
	private String shippingAddress;
	/**
	 * 商品分类ID
	 */
	@ApiModelProperty(value = "商品分类ID")
	private Long cateId;
	/**
	 * 返佣百分比
	 */
	@ApiModelProperty(value = "返佣百分比")
	private BigDecimal brokerageRatio;
	/**
	 * 奖励佣金0否1是
	 */
	@ApiModelProperty(value = "奖励佣金0否1是")
	private Integer awardBrokerage;
	/**
	 * 奖励积分0否1是
	 */
	@ApiModelProperty(value = "奖励积分0否1是")
	private Integer awardIntegral;
	/**
	 * 奖励贡献值0否1是
	 */
	@ApiModelProperty(value = "奖励贡献值0否1是")
	private Integer awardContribute;
	/**
	 * 奖励极差0否1是
	 */
	@ApiModelProperty(value = "奖励极差0否1是")
	private Integer awardRange;
	/**
	 * 奖励红包0否1是
	 */
	@ApiModelProperty(value = "奖励红包0否1是")
	private Integer awardBonus;
	/**
	 * 停止红包
	 */
	@ApiModelProperty(value = "停止红包0否1是")
	private Integer stopBonus;
	/**
	 * 商品ID
	 */
	@ApiModelProperty(value = "商品ID")
	private Long productId;
	private String znCommodityId;
	/**
	 * 商品标题
	 */
	@ApiModelProperty(value = "商品标题")
	private String productTitle;
	/**
	 * 商品详情json
	 */
	@ApiModelProperty(value = "商品详情json")
	private String productDescription;
	/**
	 * 运费金额
	 */
	@ApiModelProperty(value = "运费金额")
	private BigDecimal productPostage;
	/**
	 * 商品pv值
	 */
	@ApiModelProperty(value = "商品pv值")
	private BigDecimal productPvPrice;
	/**
	 * 商品总pv值
	 */
	@ApiModelProperty(value = "商品总pv值")
	private BigDecimal pvTotalPrice;
	/**
	 * 商品单价
	 */
	@ApiModelProperty(value = "商品单价")
	private BigDecimal productSellPrice;
	/**
	 * 商品总数
	 */
	@ApiModelProperty(value = "商品总数")
	private Integer totalNum;
	/**
	 * 订单总价
	 */
	@ApiModelProperty(value = "订单总价")
	private BigDecimal totalPrice;
	/**
	 * 实际支付金额（含运费）
	 */
	@ApiModelProperty(value = "实际支付金额（含运费）")
	private BigDecimal payPrice;
	/**
	 * 支付状态
	 */
	@ApiModelProperty(value = "支付状态")
	private Integer paid;
	/**
	 * 支付时间
	 */
	@ApiModelProperty(value = "支付时间")
	private Date payTime;
	/**
	 * 支付方式0平台余额1平台积分2众鸟余额
	 */
	@ApiModelProperty(value = "支付方式0平台余额1平台积分2众鸟余额")
	private Integer payType;
	/**
	 * 快递公司编号
	 */
	@ApiModelProperty(value = "快递公司编号")
	private String deliverySn;
	/**
	 * 快递公司名称
	 */
	@ApiModelProperty(value = "快递公司名称")
	private String deliveryName;
	/**
	 * 快递单号
	 */
	@ApiModelProperty(value = "快递单号")
	private String deliveryId;
	/**
	 * 是否处理0未处理1已处理
	 */
	@ApiModelProperty(value = "是否处理0未处理1已处理")
	private Integer isDispose;
	/**
	 * 累计红包金额
	 */
	@ApiModelProperty(value = "累计红包金额")
	private BigDecimal totalBonus;
	/**
	 * 备注
	 */
	@ApiModelProperty(value = "备注")
	private String remark;
	/**
	 * 第三方单号
	 */
	@ApiModelProperty(value = "第三方单号")
	private String thirdOrder;

	/**
	 * account
	 */
	@ApiModelProperty(value = "account")
	@TableField(exist = false)
	private String account;
	/**
	 * uid
	 */
	@ApiModelProperty(value = "uid")
	@TableField(exist = false)
	private Long uid;
	/**
	 * cateName
	 */
	@ApiModelProperty(value = "cateName")
	@TableField(exist = false)
	private String cateName;

	/**
	 * 发货时间
	 */
	@ApiModelProperty(value = "发货时间")
	private Date deliverTime;

	/**
	 * 收货时间
	 */
	@ApiModelProperty(value = "收货时间")
	private Date confirmTime;
}
